package 多线程;

public class SellTicket {
    public static void main(String[] args) {
        //实现Runnable接口
        Ticket t=new Ticket();
        Thread t1 =new Thread(t,"科学大道");
        Thread t2 =new Thread(t,"东风路");
        Thread t3 =new Thread(t,"火车站");
        Thread t4 =new Thread(t,"瑞达路");
        t1.start();t4.start();t3.start();t2.start();
        t2.setPriority(10);
        t1.setPriority(1);
        t3.setPriority(1);
        t4.setPriority(1);
    }
}
